import Vue from 'vue'
import Vuex from 'vuex'

import menu from './modules/menu'
import permission from './modules/permission'
import user from './modules/user'
import tags from './modules/tags'

if(process.env.NODE_ENV === "development"){
    Vue.use(Vuex) 
} 

export default new Vuex.Store({
    modules: {
        menu,
        permission,
        user,
        tags
    }
})